<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公文查询</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/meizzDate.js"></script>
</head>

<body>
<jsp:include page="/admin/userFileMiddle.jsp?tag=myList"/>
<form method="post">
<table width="100%" border="1">
<tr><td colspan="4" class="nohover"><input type="button" class="buttonadd" onClick="javascript:window.location.href='<%=request.getContextPath()%>/MyFileInfo.do?method=toAdd'" value="添加"/></td></tr>
  <tr>
    <th width="300">公文标题</th>
    <th width="200">创建日期</th>
    <th width="300">操作</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td><a href="<%=request.getContextPath()%>/MyFileInfo.do?method=detail&myFileInfoId=${prod.myFileInfoId}">${prod.myFileInfoFileTitle}</a></td>
    <td><fmt:formatDate pattern="yyyy-MM-dd" value="${prod.myFileInfoCreateTime}"/></td>
    <td>
    <input type="button" class="buttonsend" onClick="javascript:window.location.href='<%=request.getContextPath()%>/MyFileInfo.do?method=toSend&myFileInfoId=${prod.myFileInfoId}'" value="发送"/>
    <input type="button" class="buttonmodify" onClick="javascript:window.location.href='<%=request.getContextPath()%>/MyFileInfo.do?method=toUpdate&myFileInfoId=${prod.myFileInfoId}'" value="修改"/>
    <input type="button" class="buttondelete" onClick="javascript:if(confirm('确定删除该数据吗？'))javascript:window.location.href='<%=request.getContextPath()%>/MyFileInfo.do?method=delete&myFileInfoId=${prod.myFileInfoId}'" value="删除"/>
</c:forEach>
  </tr>
  <tr>
    <td class="nohover" colspan="4" align="center">&nbsp;
    <form name="pageForm" method="post">
    <input type="hidden" name="myFileInfoFileTitle" value="${param.myFileInfoFileTitle}"/>
    <input type="hidden" name="myFileInfoCreateTime" value="${param.myFileInfoCreateTime}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
